package com.zhiche.lisa.bms.pojo.vo.bill;

import org.springframework.util.CollectionUtils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: liuanshun
 * @Description:
 * @Date: Create in 14:06 2018/10/15
 */
public class BillReconciliationAndSunVO {
    private Integer size;
    /**
     * 错误数量
     */
    private Integer errorSize;
    /**
     * 成功数量
     */
    private Integer successSize;

    private BigDecimal price;
    private List<BillReconciliationVO> billReconciliationVOs;

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public Integer getErrorSize() {
        return errorSize;
    }

    public void setErrorSize(Integer errorSize) {
        this.errorSize = errorSize;
    }

    public Integer getSuccessSize() {
        return successSize;
    }

    public void setSuccessSize(Integer successSize) {
        this.successSize = successSize;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public List<BillReconciliationVO> getBillReconciliationVOs() {
        return billReconciliationVOs;
    }

    public void setBillReconciliationVOs(List<BillReconciliationVO> billReconciliationVOs) {
        this.billReconciliationVOs = billReconciliationVOs;
    }

    public void addBillReconciliationVO(BillReconciliationVO billReconciliationVOs) {
        if (CollectionUtils.isEmpty(this.billReconciliationVOs)) {
            this.billReconciliationVOs = new ArrayList();
        }
        this.billReconciliationVOs.add(billReconciliationVOs);
    }
}
